package test;

import com.itqf.anno.service.ProductService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/9/30
 * @Time: 下午4:02
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext-aspectj-aop-anno.xml")
//@Configuration
public class SpringAspectJAopAnno {


    @Resource
    private ProductService productService;//注意包

    @Test
    public  void  test(){


        productService.add();

    }

}
